@import './_var.scss';

.base-btn {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 38px;
  font-size: 14px;
  transition: all .1s;
  &.block {
    display: block;
    width: 100%;
  }
  &.block + &.block {
    margin-top: 10px;
  }
}
.btn {
  @extend .base-btn;
  &[disabled] {
    background: $bg-disabled;
    color: $color-disabled;
    cursor: not-allowed;
  }
  &.default {
    color: $btn-color-default;
    background-color: $btn-bg-default;
  }
  &.main {
    color: $color-white;
    background-color: $color-main;
  }
}
.btn-ghost {
  @extend .base-btn;
  background: transparent;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  &[disabled] {
    border-color: $bg-disabled;
    color: $color-disabled;
    cursor: not-allowed;
  }
  &.default {
    color: $btn-color-default;
    border-color: $color-btn-ghost-bd;
  }
  &.main {
    color: $color-main;
    border-color: $color-main;
  }
  &.code {
    font-size: 14px;
    background: $color-main;
    color: $color-white;
  }
}
.btn-group {
  font-size: 0;
  margin: 12px 0;
  button {
    margin-right: 12px;
    &:last-of-type {
      margin-right: 0;
    }
  }
}
.btn-connect {
  border: 1px solid #F00384;
  color: #F00384;
  cursor: pointer;
  width: 100px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}
.btn-close {
  color: #000;
  float: right;
  font-size: 21px;
  font-weight: 700;
  filter: alpha(opacity=20);
  line-height: 1;
  opacity: .2;
  text-shadow: 0 1px 0 #fff;

  &:hover {
    opacity: 1;
  }
}